﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200113B RID: 4411
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetClientPausedScRsp : IMessage<SetClientPausedScRsp>, IMessage, IEquatable<SetClientPausedScRsp>, IDeepCloneable<SetClientPausedScRsp>, IBufferMessage
	{
		// Token: 0x170037DC RID: 14300
		// (get) Token: 0x0600C56B RID: 50539 RVA: 0x00215650 File Offset: 0x00213850
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetClientPausedScRsp> Parser
		{
			get
			{
				return SetClientPausedScRsp._parser;
			}
		}

		// Token: 0x170037DD RID: 14301
		// (get) Token: 0x0600C56C RID: 50540 RVA: 0x00215657 File Offset: 0x00213857
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetClientPausedScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170037DE RID: 14302
		// (get) Token: 0x0600C56D RID: 50541 RVA: 0x00215669 File Offset: 0x00213869
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetClientPausedScRsp.Descriptor;
			}
		}

		// Token: 0x0600C56E RID: 50542 RVA: 0x00215670 File Offset: 0x00213870
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetClientPausedScRsp()
		{
		}

		// Token: 0x0600C56F RID: 50543 RVA: 0x00215678 File Offset: 0x00213878
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetClientPausedScRsp(SetClientPausedScRsp other) : this()
		{
			this.paused_ = other.paused_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C570 RID: 50544 RVA: 0x002156A9 File Offset: 0x002138A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetClientPausedScRsp Clone()
		{
			return new SetClientPausedScRsp(this);
		}

		// Token: 0x170037DF RID: 14303
		// (get) Token: 0x0600C571 RID: 50545 RVA: 0x002156B1 File Offset: 0x002138B1
		// (set) Token: 0x0600C572 RID: 50546 RVA: 0x002156B9 File Offset: 0x002138B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Paused
		{
			get
			{
				return this.paused_;
			}
			set
			{
				this.paused_ = value;
			}
		}

		// Token: 0x170037E0 RID: 14304
		// (get) Token: 0x0600C573 RID: 50547 RVA: 0x002156C2 File Offset: 0x002138C2
		// (set) Token: 0x0600C574 RID: 50548 RVA: 0x002156CA File Offset: 0x002138CA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600C575 RID: 50549 RVA: 0x002156D3 File Offset: 0x002138D3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetClientPausedScRsp);
		}

		// Token: 0x0600C576 RID: 50550 RVA: 0x002156E1 File Offset: 0x002138E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetClientPausedScRsp other)
		{
			return other != null && (other == this || (this.Paused == other.Paused && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C577 RID: 50551 RVA: 0x00215720 File Offset: 0x00213920
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Paused)
			{
				num ^= this.Paused.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C578 RID: 50552 RVA: 0x00215778 File Offset: 0x00213978
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C579 RID: 50553 RVA: 0x00215780 File Offset: 0x00213980
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C57A RID: 50554 RVA: 0x0021578C File Offset: 0x0021398C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this.Paused)
			{
				output.WriteRawTag(96);
				output.WriteBool(this.Paused);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C57B RID: 50555 RVA: 0x002157E8 File Offset: 0x002139E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Paused)
			{
				num += 2;
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C57C RID: 50556 RVA: 0x00215834 File Offset: 0x00213A34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetClientPausedScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Paused)
			{
				this.Paused = other.Paused;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C57D RID: 50557 RVA: 0x00215884 File Offset: 0x00213A84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C57E RID: 50558 RVA: 0x00215890 File Offset: 0x00213A90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Paused = input.ReadBool();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004F88 RID: 20360
		private static readonly MessageParser<SetClientPausedScRsp> _parser = new MessageParser<SetClientPausedScRsp>(() => new SetClientPausedScRsp());

		// Token: 0x04004F89 RID: 20361
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004F8A RID: 20362
		public const int PausedFieldNumber = 12;

		// Token: 0x04004F8B RID: 20363
		private bool paused_;

		// Token: 0x04004F8C RID: 20364
		public const int RetcodeFieldNumber = 2;

		// Token: 0x04004F8D RID: 20365
		private uint retcode_;
	}
}
